package cn.edu.scau.entity;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotNull;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
@AllArgsConstructor
@Builder

/**
 * 工作计划实体类
 * @author LLLegend
 *
 */
public class WorkPlan implements Serializable {
    
	private static final long serialVersionUID = 3142116186247765864L;

	/**
	 * 工作日期
	 */
	@NotNull
	@DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
	private Date workDate;

	/**
	 * 护士编号
	 */
	@NotNull
    private Integer nurseID;

	/**
	 * 护士名
	 */
	private String nurseName;//需要从数据库中读取
	
    /**
     * 早班工作状态
     */
	@NotNull
    private Boolean workMorning;

    /**
     * 午班工作状态
     */
	@NotNull
    private Boolean workAfternoon;

    /**
     * 晚班工作状态
     */
	@NotNull
    private Boolean workEvening;
   
}